<?php
	global $_W,$_GPC;
	if($_W['role']){
		$oid = $_GPC['oid'];
		$ad = pdo_get('mii_ang_ad',array('id'=>$oid));
		$goods = pdo_fetchall("SELECT id,goodsname FROM".tablename('mii_ang_goods')." WHERE uniacid=:uniacid AND grounding = :grounding ORDER BY id DESC",array(':uniacid'=>$_W['uniacid'],':grounding'=>'1'));
		include $this->template('web/ad/adedit');
	}else{
		message('没有操作权限');
	}



?>